package mybatis.dao;

import mybatis.entity.User;
import org.apache.ibatis.annotations.Param;


public interface UserDao {
	public void add(User user);
	public User findByName(String username);
	public User findByCode(String code);
	public User findByNameAndPassword(@Param("username")String username,@Param("password")String passwrod);
	public void updateById(int id);
	public void updateHeader(@Param("uid")int userid,@Param("img")String headersrc);
}
